package com.pt.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pt.common.annotation.Excel;
import com.pt.common.core.domain.BaseEntity;

/**
 * 作业对象 homework
 * 
 * @author wxt
 * @date 2025-02-27
 */
public class Homework extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long HomeworkID;

    /** 作业名称 */
    @Excel(name = "作业名称")
    private String HomeworkName;

    /** 作业详情 */
    @Excel(name = "作业详情")
    private String HomeworkDetails;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ReleaseTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date Deadline;

    /** 课程 */
    @Excel(name = "课程")
    private Long CourseID;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public void setHomeworkID(Long HomeworkID)
    {
        this.HomeworkID = HomeworkID;
    }

    public Long getHomeworkID()
    {
        return HomeworkID;
    }
    public void setHomeworkName(String HomeworkName)
    {
        this.HomeworkName = HomeworkName;
    }

    public String getHomeworkName()
    {
        return HomeworkName;
    }
    public void setHomeworkDetails(String HomeworkDetails)
    {
        this.HomeworkDetails = HomeworkDetails;
    }

    public String getHomeworkDetails()
    {
        return HomeworkDetails;
    }
    public void setReleaseTime(Date ReleaseTime)
    {
        this.ReleaseTime = ReleaseTime;
    }

    public Date getReleaseTime()
    {
        return ReleaseTime;
    }
    public void setDeadline(Date Deadline)
    {
        this.Deadline = Deadline;
    }

    public Date getDeadline()
    {
        return Deadline;
    }
    public void setCourseID(Long CourseID)
    {
        this.CourseID = CourseID;
    }

    public Long getCourseID()
    {
        return CourseID;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("HomeworkID", getHomeworkID())
            .append("HomeworkName", getHomeworkName())
            .append("HomeworkDetails", getHomeworkDetails())
            .append("ReleaseTime", getReleaseTime())
            .append("Deadline", getDeadline())
            .append("CourseID", getCourseID())
            .append("status", getStatus())
            .toString();
    }
    public static final Long DEFAULT_STATUS = 0L;
    public static final Long WAIT_STATUS = 1L;
    public static final Long SUCCESS_STATUS = 2L;
}
